<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
	pageContext.setAttribute("path", basePath);
 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title>My JSP 'fdIndustryList.jsp' starting page</title>

		<link rel="stylesheet" href="css/style.css" type="text/css"></link>
	</head>
	<jsp:include page="../fieldIndustry/header.jsp"></jsp:include>
	<body class="indexWrap">
		<s:form action="listInfbd_fdIndustry" theme="simple">
			<table id="mytable" align="center" width="85%"
				style="margin: 0 auto; padding: 300">
				<caption>
					杭州优稳行业库后台管理
				</caption>
				<s:iterator id="category" value="categoryList">
					<tr>
						<th colspan="4">
							${category}
							<s:a href="fieldIndustry/admin/addIndustry.jsp">添加</s:a>
						</th>
					</tr>
				</s:iterator>
				<s:iterator id="industry" value="industryList">
					<tr>
						<th colspan="4">
							${industry.fieldIndustry}&nbsp;&nbsp;(当前最新版本号：${industry.fdIndustryVersion})
							<s:url id="url" action="initAddFbd_fdIndustry">
							</s:url>
							<s:a href="%{url}">添加</s:a>
						</th>
					</tr>
					<tr>
						<th width="14%">
							行业算法块
						</th>
						<th width="10%">
							版本号
						</th>
						<th>
							存储路径
						</th>
						<th width="8%">
							更新
						</th>
					</tr>
					<tbody>
						<s:iterator id="fbd" value="%{industrys}">
							<s:if test="%{industryFbd!=null}">
								<tr>
									<td>
										${fbd.industryFbd }
									</td>
									<td>
										${fbd.industryFbdVersion }
									</td>
									<td>
										${fbd.industryFbdPath }
									</td>
									<td>
										<s:url id="url" action="loadIndustryFbd_fdIndustry">
											<s:param name="industryfbd.industryFbdId">${industryFbdId}</s:param>
										</s:url>
										<s:a href="%{url}">更新</s:a>
									</td>
								</tr>
							</s:if>
						</s:iterator>
					</tbody>
				</s:iterator>
			</table>
		</s:form>
	</body>

</html>
